
import { _decorator, Component, Node } from 'cc';
import yyComponent from '../../Script/Common/yyComponent';
import { EventType } from '../../Script/GameSpecial/GameEventType';
import { GlobalEnum } from '../../Script/GameSpecial/GlobalEnum';
const { ccclass, property } = _decorator;

@ccclass('LobbyBtns')
export class LobbyBtns extends yyComponent {

    //商城
    protected onBtnShopClick() {
        this.emit(EventType.Common.AudioEvent.playClickBtn);
        this.emit(EventType.Common.UIEvent.enter, GlobalEnum.UI.shop);
    }
    //设置
    protected onBtnSettingClick() {
        this.emit(EventType.Common.AudioEvent.playClickBtn);
    }
    //转盘
    protected onBtnSpinClick() {
        this.emit(EventType.Common.AudioEvent.playClickBtn);
        this.emit(EventType.Common.UIEvent.enter, GlobalEnum.UI.spin);
    }
    //签到
    protected onBtnSignClick() {
        this.emit(EventType.Common.AudioEvent.playClickBtn);
        this.emit(EventType.Common.UIEvent.enter, GlobalEnum.UI.signUI);
    }
    //添加桌面
    protected onBtnAddToDeskClick() {
        this.emit(EventType.Common.AudioEvent.playClickBtn);
        this.emit(EventType.Common.SDKEvent.addTableIcon);
    }
    //更多游戏-oppo
    protected onBtnMoreGame() {
        this.emit(EventType.Common.AudioEvent.playClickBtn);
        this.emit(EventType.Common.HeyGameSDK.showMoreGame);
    }
    //查看广告
    protected onCheckNativeAd() {
        this.emit(EventType.Common.AudioEvent.playClickBtn);
        this.emit(EventType.Common.HeyGameSDK.clickNativeAd);
    }
}
